#ifndef __POLARISTYPEDEF_H
#define __POLARISTYPEDEF_H

/*
ARM 6818
    sizeof(int) = 4
    sizeof(char) = 1
    sizeof(short) = 2
    sizeof(long) = 4        (Ubuntu中)，sizeof(long) = 8，其他一样
    sizeof(float) = 4
    sizeof(double) = 8
    sizeof(long long) = 8
*/

typedef unsigned int UINT32;
typedef unsigned short UINT16;
typedef unsigned char UCHAR;



typedef union {
    UINT32 U32Data;
    UCHAR UCharData[4];
}UNI_U32INT_4UCHAR;


typedef union U16Data
{
    UINT16 U16AllData;
    struct U16Struct
    {
        UINT16 bReserved0: 1;
        UINT16 bReserved1: 1;
        UINT16 bReserved2: 1;
        UINT16 bReserved3: 1;
        UINT16 bReserved4: 1;
        UINT16 bReserved5: 1;
        UINT16 bReserved6: 1;
        UINT16 bReserved7: 1;

        UINT16 bReserved89: 2;
        UINT16 bReserved1011: 2;
        UINT16 bReserved1215: 4;
    }U16bData;
}U16Data;



#endif
